package com.appkubes.fintech.restful.application.user.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @Author: wuzhijian
 * @Date: 2019/12/27 15:55
 * @Description:
 *  紧急联系人信息
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EmergencyContactDTO implements Serializable {

    @ApiModelProperty("姓名")
    private String relativeName;

    @ApiModelProperty("工作情况")
    private String work;

    @ApiModelProperty("年龄")
    private Integer age;

    @ApiModelProperty("直系亲属关系")
    private String realtionType;

    @ApiModelProperty("手机号")
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "\\d{11}", message = "无效手机号")
    private String relativePhone;

    @ApiModelProperty("关系")
    private String relation;
}
